﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;


namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {

        int a, b, c;



        model model;

        controller arkx;

       // private controller _controllor;  

        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {

            this.a = 1;

            model = new model() ;

            model.a = 123;

            this.a = model.a;

            

            textBox1.Text = this.a.ToString();



           
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.b = 2;
            textBox1.Text = this.b.ToString();

        }

        private void button3_Click(object sender, EventArgs e)
        {
            textBox1.Text = "1";
        }

        private void button4_Click(object sender, EventArgs e)
        {

            arkx=new controller();
            int kuax = arkx.add_number(this.a, this.b);
            //this.c = this.a + this.b;
            //textBox1.Text = this.c.ToString();
            textBox1.Text=kuax.ToString();

        }

        
    }
}
